﻿
namespace StyleCop.For.ReSharper.TestProject.Spacing
{
    using System.Collections.Generic;

    /// <summary>
    ///SA1004: DocumentationLinesMustBeginWithSingleSpace.
    /// </summary>
    public class TestSpacingRules
    {
        /// <summary>
        /// SA1004: DocumentationLinesMustBeginWithSingleSpace.
        /// </summary>
        /// <param name="test">Test test test.</param>
        /// <returns>Test Test Test.</returns>
        public static bool operator +(TestSpacingRules test)
        {
            // SA1007: OperatorKeywordMustBeFollowedBySpace
            return false;
        }

        /// <summary>
        /// SA1004: DocumentationLinesMustBeginWithSingleSpace. 
        /// </summary>
        /// <returns>Int Int Int.</returns>
        private int[] TestMethod ( )
        {


            int x = 1;
            int y = 3;

            int [ ] fixSa1010 = new int[2];

            if (x > y)
            {
                return fixSa1010;
            }

            List<string> myList = new List<string> ( ) ;

            int fixSa1000=x>0?x:y;

            switch (fixSa1000)
            {
                case 0 :
                    return fixSa1010; 
            }

# if DEBUG
# endif

            //SA1005: SingleLineCommentsMustBeginWithSingeSpace

            // SA1001: CommasMustBeSpacedCorrectly
            string commaSpacing="test",commaSpacing2="test2";

            commaSpacing.CompareTo(commaSpacing2);

            return new int[] {};
        }
    }
}
